#ifndef pwm_h
#define pwm_h

#include "stdint.h"

/**
 * @brief Initialize PWM module (based on TIM5 timer, PA0 pin output)
 * @note Configure TIM5 channel 1 as PWM1 mode, duty cycle range 0-100
 */
void pwm_init(void);

/**
 * @brief Set PWM channel 1 duty cycle
 * @param compare: Duty cycle value (0-100, corresponding to 0%-100%)
 */
void pwm_set_compare1(uint16_t compare);

#endif // __PWM_H__
